package main

import (
	rediscli "go-ws-server/redis"
	"go-ws-server/ws/handler"

	"github.com/gin-gonic/gin"

	initData "go-ws-server/initData"
)

func main() {

	rediscli.InitRedis() // 初始化 Redis 连接

	initData.SyncRedisData()

	r := gin.Default()

	// WebSocket 连接
	r.GET("/ws", handler.HandleWebSocket)

	r.Run(":8081")
}
